package com.example.demo.mapper;

import com.example.demo.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.awt.print.Book;
import java.util.List;


@Mapper
@Repository
public interface MenuMapper {
    public Menu findById(long id);
    public List<Menu> findAllMenu();

    public List<Menu> queryMenuList(Integer index , Integer limit);

    Boolean deleteById(Long id);

    Boolean offLoadById(Long id);

    Boolean upLoadById(Long id);

    //更新菜品
    public Integer updateMenu(Menu menu);

    //删除菜品
    public Integer deleteMenu(Long id);

    //添加菜品
    public Integer createMenu(Menu menu);

}
